package com.bjtu.transactionclient.dao;

import com.bjtu.transactionclient.domain.AuthorIndex;
import com.bjtu.transactionclient.domain.JournalChinese;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository("AuthorIndexDao")
public interface AuthorIndexDao {

	Boolean add(AuthorIndex authorIndex);

	@Select("select * from authorindexnotable  where IndexNo = #{indexNo} and AuthorOrder = 1")
	AuthorIndex queryFirstAuthorByIndexNo(@Param("indexNo") String indexNo);

}
